*
* Master file: replicate all tables and figures
*
* 
clear all

global dir_main "C:\Users\tbz312\OneDrive - Vrije Universiteit Amsterdam\Documents\replication_package\"

cd "${dir_main}"

do "code\global.do"

do "${dir_code_analyze_data}\filenames.do"

* Main text
** Table 1: Characteristics of applicants' ROLs
do "${dir_code_analyze_data}\Table1.do"

** Table 2: Winners, losers, and the number of assigned applicants
do "${dir_code_analyze_data}\Table2.do"

** Table 3: Characteristics of winners and losers: preference flip algorithm
do "${dir_code_analyze_data}\Table3.do"

* Appendix
** Appendix C
*** Table C1: Applicants' choice set
do "${dir_code_analyze_data}\TableC1.do"
*** Table C2: Realized and benchmark assignments
do "${dir_code_analyze_data}\TableC2.do"
*** Table C3: Summary statistics on applicants' characteristics
do "${dir_code_analyze_data}\TableC3.do"
*** Table C4: Summary statistics on applicants' ROLs: Applicants' residence
do "${dir_code_analyze_data}\TableC4.do"
*** Table C5: Socioeconomic status, academic achievement, and ROL characteristics
do "${dir_code_analyze_data}\TableC5.do"
*** Table C6: Socioeconomic status, academic achievement, and ROL characteristics (2)
do "${dir_code_analyze_data}\TableC6.do"
*** Table C7: Program characteristics by excess self-funded capacity at the benchmark
do "${dir_code_analyze_data}\TableC7.do"

** Appendix D
*** Table D1: Narrow market power
do "${dir_code_analyze_data}\TableD1.do"
*** Table D2: Winners, losers, and the number of assigned applicants: Greedy reject and combined algorithms
do "${dir_code_analyze_data}\TableD2.do"
*** Table D3: Characteristics of winners and losers: Greedy reject algorithm
do "${dir_code_analyze_data}\TableD3.do"
*** Table D4: Characteristics of winners and losers: Combined algorithm
do "${dir_code_analyze_data}\TableD4.do"

** Appendix E
*** Table E1: Geographic mobility: Preference flip algorithm
do "${dir_code_analyze_data}\TableE1.do"
